<template>
  <div id="app">
    <hNav :navTitle="navTitle"/>
     <div class="content">
       <router-view @setNavTitle="setNavTitle"></router-view>
     </div>
    <Footer/>
  </div>
</template>

<script>
import hNav from '@/components/headerNav'
import Footer from '@/components/footer'
//import MoveList from '@/page/moveList'
export default {
  data() {
    return {
      navTitle:''
    }
  },
  components:{
    hNav,
    Footer,
    //MoveList
  },
  methods:{
    setNavTitle(val){
      this.navTitle=val[0];
    }
  }
}
</script>

<style>
*{margin: 0;padding: 0;color: #fff;}
a{text-decoration: none;}
html{font-size:14px;}
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  width: 640px;
  margin: 0 auto;
}
</style>
